function onDoSuccess(){//initialize validator
	EasyValidator.initial(easyValidatorPanel,0);
}
var easyValidatorPanel;
$(function(){
	easyValidatorPanel = this;
});
<#list fisher.grid.columnList as column >
  <#if column.visual=="true">
  	<#assign edittype=column.parameterMap.edittype?default("")>
  	<#assign editname=column.parameterMap.editname?default("")>
  	<#assign readonly=fisher.getGrid().getRequest().getParameter("readonly")?default("false")>
  	<#if edittype!=""&&editname!=""&&readonly=="false">
  		<#assign renderer=column.name+"FilterRenderer">
  		//可编辑字段【${column.display}】的Renderer
  		function ${renderer}(tdDiv,pid){
  			$(tdDiv).parent().attr("class","fisherEditerTD");
  			$(tdDiv).attr("class","fisherEditerDIV");
			if(window.onDo${column.name?cap_first}Renderer!=null){
				window.onDo${column.name?cap_first}Renderer(tdDiv,pid);
			}else{
				var html="";
				<#switch edittype>
				  <#case "text"><#--文本text编辑值-->
				  	 html ="<";
				  	 html+="input edit=\"${editname}\"  type=\"text\"  name=\""+pid+"_${editname}\" value=\""+$.trim($(tdDiv).text())+"\"";
					<#if column.type=="date">
						html+=" class=\"Wdate fisherEditerInput\" onclick=\"WdatePicker({readOnly:false,highLineWeekDay:true,skin:'whyGreen'});\" ";
					<#elseif column.type=="datetime">
						html+=" class=\"Wdate fisherEditerInput\" onclick=\"WdatePicker({readOnly:false,highLineWeekDay:true,skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'});\" "; 
					<#else>
						html+=" class=\"fisherEditerInput\" "; 
					</#if>
					<#include "grid-event.ftl">				  	 
					<#include "grid-validater.ftl">				  	 
				  	 html+=">";
				     <#break>
				  <#case "select"><#--下拉select编辑值-->
					 html ="<select edit=\"${editname}\"  name=\""+pid+"_${editname}\" value=\""+$.trim($(tdDiv).text())+"\"  class=\"fisherEditerSelect\" ";
					 <#include "grid-event.ftl">	
					 <#include "grid-validater.ftl">						 
					 html +=">";
					 <#if fisher.grid.getColumnFilter(column).getValueOptions(column)?exists>
						<#list fisher.grid.getColumnFilter(column).getValueOptions(column) as options >
							  html+=" <option value=\"${options.value}\" ";
							  if($.trim($(tdDiv).text())=="${options.value}"||$.trim($(tdDiv).text())=="${options.name}"){
							  	html+=" selected=\"true\" ";
							  }
							  html+=" >${options.name}</option> ";
						</#list>						 
					 </#if>
					 html+="</select>";
				     <#break>
				  <#case "checkbox"><#--多选checkbox编辑值-->
				  <#case "radio"><#--单选radio编辑值-->
				  	 html+="<div  class=\"fisherEditerRadioCheckbox\" ";
				  	 <#include "grid-event.ftl">	
				  	 <#include "grid-validater.ftl">
				  	 html+=">";
					 <#if fisher.grid.getColumnFilter(column).getValueOptions(column)?exists>
						<#list fisher.grid.getColumnFilter(column).getValueOptions(column) as options >
							  html+="<input edit=\"${editname}\" type=\"${edittype}\"  name=\""+pid+"_${editname}\" id=\"editer_${editname}_${options_index}\" value=\"${options.value}\" ";
							  if($.trim($(tdDiv).text())=="${options.value}"||$.trim($(tdDiv).text())=="${options.name}"){
							  	html+=" checked=\"true\" ";
							  }							  
							  html+="/>";
							  html+="<label for=\"editer_${editname}_${options_index}\" title=\"${options.name}\">${options.name}</label>";
						</#list>						 
					 </#if>
					 html+="</div>";
				     <#break>
				  <#default>
				     alert("可编辑字段【${column.display}】编辑元素类型【${edittype}】未处理，请与系统管理员联系！");
				</#switch>
				$(tdDiv).html(html);
			}
  		}
  	</#if>        	    	
  </#if> 
</#list>